package com.yjd.comm.sms.enums;
/**
	 * 短信状态
	 * 
	 * @author ready
	 * @date 2014-8-7
	 */
	public enum SmsStatusEnum {
		WAITSEND(0, "待发送"), SENDSUCCESS(1, "已发送"), SENDFAIL(2, "发送失败"), OTHER(
				3, "其他");
		private Integer status;
		private String description;

		private SmsStatusEnum(Integer status, String description) {
			this.status = status;
			this.description = description;
		}

		public Integer getStatus() {
			return status;
		}

		public String getDescription() {
			return description;
		}

		public static SmsStatusEnum getSmsStatus(Integer status) {
			for (SmsStatusEnum smsStatusEnum : SmsStatusEnum.values()) {
				if (smsStatusEnum.getStatus().equals(status)) {
					return smsStatusEnum;
				}
			}
			return null;
		}
	}